using System;
using System.Collections.Generic;
using System.Linq;
using LeadTracker.Models;

namespace LeadTracker.DataAccess
{
	/// <summary>
	/// This combines a lead with any extra data needed to render it.
	/// </summary>
	public class LeadPackage
	{
		readonly EditorCollection m_Editors;
		readonly LeadModel m_Lead;

		public LeadPackage(LeadModel lead, EditorCollection editors)
		{
			if (lead == null)
				throw new ArgumentNullException("lead", "lead is null.");
			if (editors == null)
				throw new ArgumentNullException("editors", "editors is null.");

			m_Editors = editors;
			m_Lead = lead;
		}

		public EditorCollection Editors
		{
			get { return m_Editors; }
		}

		public LeadModel Lead
		{
			get { return m_Lead; }
		}
	}
}
